<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>设置纸张</title>
</head>
<body>
<div id="print">
<table border="1" width="360" height="220" style="border-collapse:collapse;border:solid 1px" bordercolor="#000000">
  <tr>
    <td width="100%" height="240">
      <p align="center"> 
      <font face="隶书" size="5" style="letter-spacing: 10px">郭德强</font>
      <p align="center"><font face="宋体" size="3">科学家</font></p>
      <p align="left"><font face="宋体" size="3">　地址：中国北京社会科学院附近东大街西胡同</font></p>
      <p align="left"><font face="宋体" size="3">　电话：010-88811888</font></p>
      <p><br>      　
      </p>
    </td>
  </tr>
</table>
</div>
<a href="javascript:print()">打印</a>
<script language="javascript" src="${path}/static/lodop/LodopFuncs.js"></script>
<script type="text/javascript">
var LODOP;
function print(){
	LODOP=getLodop(); 
	LODOP.SET_PRINT_PAGESIZE(3, 0, 0,"A4");//设置A4纸打印
	var strHtml=document.getElementById('print').innerHTML;
	LODOP.ADD_PRINT_HTM(10,55,"100%","100%",strHtml);
	LODOP.PREVIEW();
}
</script>
</body>
</html>